package com.codefish.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codefish.entity.OutMoneyClass;

import java.util.List;

/**
 * 支出类型分类
 *
 * @author codefish
 * @email cool_fish@aliyun.com
 * @date 2021-07-14 15:12:43
 */
public interface OutMoneyClassService extends IService<OutMoneyClass> {

    /**
     * 新增单个
     * @param outMoneyClass
     * @return
     */
    Integer saveOne(OutMoneyClass outMoneyClass);

    /**
     * 修改单个
     * @param outMoneyClass
     * @return
     */
    boolean updateOne(OutMoneyClass outMoneyClass);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean deleteOne(Integer id);

    /**
     * 条件分页查询
     * @param pageNo
     * @param pageSize
     * @param familyId
     * @return
     */
    IPage<OutMoneyClass> getPageByParams(Integer pageNo, Integer pageSize, Integer familyId);

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    OutMoneyClass getItemById(Integer id);

    /**
     * 根据id批量查询
     * @param classList
     * @return
     */
    List<OutMoneyClass> selectList(List<Integer> classList);
}

